﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using nplJobsCommon.JobSeeker;
using nplJobsDAL.Insert;

namespace nplJobsBLL.ProcessJobSeeker
{

    public class ProcessInsertJobSeeker : IBusinessLogic
    {
        public string CheckUnique;
        public Guid LastJobSeekerID = Guid.Empty;

        public ProcessInsertJobSeeker()
        {
        }
        public JobSeeker JobSeeker { get; set; }
      
        public void invoke()
        {
            InsertJobSeeker insertJobSeeker = new InsertJobSeeker();
            insertJobSeeker.JobSeeker = this.JobSeeker;
            insertJobSeeker.Insert();
            LastJobSeekerID = insertJobSeeker.lastJobSeekerID;
            this.CheckUnique = insertJobSeeker.CheckUnique;
        }
    }
  }
